import Vue from 'vue'
import Router from 'vue-router'
import Home from "../views/Home.vue";
import Login from "../views/Login.vue";
import Mine from "../views/Mine.vue";
import getlocation from "../test/getlocation.vue";
import Article from "../views/sec_views/Article.vue";
import PostForm from "../views/sec_views/PostForm.vue";
import Yolo_flask from "../test/Yolo_flask.vue";
import AntigenRecognition from "../views/sec_views/AntigenRecognition.vue";
import Register from "../views/Register.vue";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/mine',
      name: 'Mine',
      component: Mine
    },
    {
      path: '/news/:newsId?',
      name: 'article',
      component: Article
    },
    {
      path: '/postinfo',
      name: 'postinfo',
      component: PostForm
    },
    {
      path: '/test',
      name: 'getlocation',
      component: getlocation
    },
    {
      path: '/test_flask',
      name: 'test_flask',
      component: Yolo_flask
    },
    {
      path: '/antigen_recognition',
      name: 'antigen_recognition',
      component: AntigenRecognition
    },
    {
      path: '/register',
      name: 'register',
      component: Register
    }
  ]
})
